package two.chapter_2.c2_1;

import two.chapter_1.c1_1.Printer;

public class Ex2_1_5 {

    /**
     * 插入排序  待排序的数组为升序排列时，内层循环的比较操作次数最少
     * @param args
     */
    public static void main(String [] args){

        String[] items={"A","B","C","D",
                "E","F","G","H",
                "I","J","K","L",};

        Sortable<String> sortable=new InsertionSort<>();

        sortable.sort(items);
        Printer.printArray(items);
    }



}
